#pragma once

class MC3E
{
public:
	MC3E(void);
	~MC3E(void);

public:

	CString BuildData_Write(char cDeviceType,short *buf,int iDataLen,int iStartAddr);

	CString BuildData_Read(char cDeviceType,int iDataLen,int iStartAddr);

	int String2Hex_SocketSendData(CString str, CByteArray &senddata,char* tag);

	bool CheckResult_Write(CString strRestult);
private:
	CString m_strHead_1;
	CString m_strSize_2;
	//
	CString m_strHead_3;

	CString m_strWriteOrder_4;

	//
	CString m_strReadOrder_4;

	//
	CString m_strSubHead_5;

	//
	CString m_strDeviceType_D_6;
	CString m_strDeviceType_W_6;

	//
	CString m_strStartAddr_7;

	CString m_strDataSize_8;
	//
	CString m_strData_9;
};

